package cc.SSM.utils;

import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zhonglin on 2016/9/20.
 */
public class PageView {

    public static void getPageView(HttpServletRequest httpServletRequest, String parameter, Page page, Model model){
        model.addAttribute("parameter",parameter);
        model.addAttribute("url",httpServletRequest.getServletPath());
        model.addAttribute("page",page);
    }
}
